package com.jic.manager.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.manager.entity.SysMenu;
import com.jic.manager.entity.SysRoleMenu;
import com.jic.manager.request.SysRoleMenuRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 菜单资源信息表
 * @author : 
 * @email : 
 * @since : 2020-02-26 09:39:25
 * @version : v1.0.0
 */
@Mapper
public interface  SysMenuMapper {

    long insert(SysMenu sysMenu);

    long delete(Long id);

    long update(SysMenu sysMenu);

    SysMenu queryByPrimaryKey(Long id);

    List<SysMenu> query(SysMenu sysMenu);

    List<SysMenu> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("sysMenu") SysMenu sysMenu);

    long queryPageCount(SysMenu sysMenu);

    List<SysMenu> findPermissions(@Param("sysRoleMenuRequest")SysRoleMenuRequest sysRoleMenuRequest);

    List<SysMenu> getRoleMenuListByRoleid(@Param("sysRoleMenuRequest") SysRoleMenuRequest sysRoleMenuRequest);
}